.class Lcom/example/m6shop/IndexActivity$12;
.super Landroid/os/Handler;
.source "IndexActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/example/m6shop/IndexActivity;->onCreate(Landroid/os/Bundle;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/example/m6shop/IndexActivity;


# direct methods
.method constructor <init>(Lcom/example/m6shop/IndexActivity;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lcom/example/m6shop/IndexActivity$12;->this$0:Lcom/example/m6shop/IndexActivity;

    .line 229
    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    return-void
.end method

.method static synthetic access$0(Lcom/example/m6shop/IndexActivity$12;)Lcom/example/m6shop/IndexActivity;
    .locals 1

    .prologue
    .line 229
    iget-object v0, p0, Lcom/example/m6shop/IndexActivity$12;->this$0:Lcom/example/m6shop/IndexActivity;

    return-object v0
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 12
    .param p1, "msg"    # Landroid/os/Message;

    .prologue
    .line 231
    invoke-super {p0, p1}, Landroid/os/Handler;->handleMessage(Landroid/os/Message;)V

    .line 232
    iget v9, p1, Landroid/os/Message;->arg1:I

    sparse-switch v9, :sswitch_data_0

    .line 303
    :goto_0
    :sswitch_0
    return-void

    .line 236
    :sswitch_1
    iget-object v9, p0, Lcom/example/m6shop/IndexActivity$12;->this$0:Lcom/example/m6shop/IndexActivity;

    iget-object v9, v9, Lcom/example/m6shop/IndexActivity;->mcontext:Landroid/content/Context;

    const-string v10, "\u767b\u9646\u8fd4\u56de\u4fe1\u606f"

    const-string v11, "\u767b\u9646\u6210\u529f"

    invoke-static {v9, v10, v11}, Lmyclass/Util;->alertdialog(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    .line 240
    :sswitch_2
    iget-object v9, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    invoke-virtual {v9}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v2

    .line 241
    .local v2, "checkinfo":Ljava/lang/String;
    const-string v9, "nologin"

    invoke-virtual {v2, v9}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v9

    if-eqz v9, :cond_0

    .line 243
    new-instance v4, Landroid/content/Intent;

    invoke-direct {v4}, Landroid/content/Intent;-><init>()V

    .line 244
    .local v4, "intent":Landroid/content/Intent;
    iget-object v9, p0, Lcom/example/m6shop/IndexActivity$12;->this$0:Lcom/example/m6shop/IndexActivity;

    const-class v10, Lcom/example/m6shop/LoginActivity;

    invoke-virtual {v4, v9, v10}, Landroid/content/Intent;->setClass(Landroid/content/Context;Ljava/lang/Class;)Landroid/content/Intent;

    .line 245
    iget-object v9, p0, Lcom/example/m6shop/IndexActivity$12;->this$0:Lcom/example/m6shop/IndexActivity;

    invoke-virtual {v9, v4}, Lcom/example/m6shop/IndexActivity;->startActivity(Landroid/content/Intent;)V

    goto :goto_0

    .line 250
    .end local v4    # "intent":Landroid/content/Intent;
    :cond_0
    iget-object v9, p0, Lcom/example/m6shop/IndexActivity$12;->this$0:Lcom/example/m6shop/IndexActivity;

    iget-object v9, v9, Lcom/example/m6shop/IndexActivity;->mcontext:Landroid/content/Context;

    const-string v10, "\u63d0\u793a\u4fe1\u606f"

    iget-object v11, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    invoke-virtual {v11}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v11

    invoke-static {v9, v10, v11}, Lmyclass/Util;->alertdialog(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    .line 255
    .end local v2    # "checkinfo":Ljava/lang/String;
    :sswitch_3
    iget-object v9, p0, Lcom/example/m6shop/IndexActivity$12;->this$0:Lcom/example/m6shop/IndexActivity;

    iget-object v9, v9, Lcom/example/m6shop/IndexActivity;->mcontext:Landroid/content/Context;

    const-string v10, "\u6570\u636e\u83b7\u53d6\u5931\u8d25"

    const-string v11, "\u5c06\u68c0\u67e5\u7f51\u7edc\u8fde\u63a5\u6216\u8005\u8054\u7cfb\u5ba2\u670d"

    invoke-static {v9, v10, v11}, Lmyclass/Util;->alertdialog(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    .line 260
    :sswitch_4
    :try_start_0
    new-instance v5, Lorg/json/JSONObject;

    iget-object v9, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    invoke-virtual {v9}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v9

    invoke-direct {v5, v9}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 261
    .local v5, "json2":Lorg/json/JSONObject;
    const-string v9, "msg"

    invoke-virtual {v5, v9}, Lorg/json/JSONObject;->getJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v0

    .line 262
    .local v0, "backdata":Lorg/json/JSONObject;
    iget-object v9, p0, Lcom/example/m6shop/IndexActivity$12;->this$0:Lcom/example/m6shop/IndexActivity;

    const v10, 0x7f070258

    invoke-virtual {v9, v10}, Lcom/example/m6shop/IndexActivity;->findViewById(I)Landroid/view/View;

    move-result-object v6

    check-cast v6, Landroid/widget/TextView;

    .line 263
    .local v6, "lecost":Landroid/widget/TextView;
    iget-object v9, p0, Lcom/example/m6shop/IndexActivity$12;->this$0:Lcom/example/m6shop/IndexActivity;

    const v10, 0x7f070259

    invoke-virtual {v9, v10}, Lcom/example/m6shop/IndexActivity;->findViewById(I)Landroid/view/View;

    move-result-object v8

    check-cast v8, Landroid/widget/TextView;

    .line 264
    .local v8, "yuecost":Landroid/widget/TextView;
    iget-object v9, p0, Lcom/example/m6shop/IndexActivity$12;->this$0:Lcom/example/m6shop/IndexActivity;

    const v10, 0x7f07025a

    invoke-virtual {v9, v10}, Lcom/example/m6shop/IndexActivity;->findViewById(I)Landroid/view/View;

    move-result-object v7

    check-cast v7, Landroid/widget/TextView;

    .line 265
    .local v7, "yecost":Landroid/widget/TextView;
    new-instance v9, Ljava/lang/StringBuilder;

    const-string v10, "\uffe5"

    invoke-direct {v9, v10}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v10, "allcost"

    invoke-virtual {v0, v10}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v6, v9}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 266
    new-instance v9, Ljava/lang/StringBuilder;

    invoke-direct {v9}, Ljava/lang/StringBuilder;-><init>()V

    const-string v10, "yuecost"

    invoke-virtual {v0, v10}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v8, v9}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 267
    new-instance v9, Ljava/lang/StringBuilder;

    const-string v10, "\uffe5"

    invoke-direct {v9, v10}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v10, "shopcost"

    invoke-virtual {v0, v10}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v7, v9}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 269
    iget-object v9, p0, Lcom/example/m6shop/IndexActivity$12;->this$0:Lcom/example/m6shop/IndexActivity;

    const-string v10, "plateshopid"

    invoke-virtual {v0, v10}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v10

    invoke-static {v9, v10}, Lcom/example/m6shop/IndexActivity;->access$0(Lcom/example/m6shop/IndexActivity;Ljava/lang/String;)V

    .line 270
    iget-object v9, p0, Lcom/example/m6shop/IndexActivity$12;->this$0:Lcom/example/m6shop/IndexActivity;

    const-string v10, "plateshopname"

    invoke-virtual {v0, v10}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v10

    invoke-static {v9, v10}, Lcom/example/m6shop/IndexActivity;->access$1(Lcom/example/m6shop/IndexActivity;Ljava/lang/String;)V

    .line 272
    iget-object v9, p0, Lcom/example/m6shop/IndexActivity$12;->this$0:Lcom/example/m6shop/IndexActivity;

    const v10, 0x7f070266

    invoke-virtual {v9, v10}, Lcom/example/m6shop/IndexActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/LinearLayout;

    .line 273
    .local v1, "caigou":Landroid/widget/LinearLayout;
    new-instance v9, Lcom/example/m6shop/IndexActivity$12$1;

    invoke-direct {v9, p0}, Lcom/example/m6shop/IndexActivity$12$1;-><init>(Lcom/example/m6shop/IndexActivity$12;)V

    invoke-virtual {v1, v9}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    goto/16 :goto_0

    .line 293
    .end local v0    # "backdata":Lorg/json/JSONObject;
    .end local v1    # "caigou":Landroid/widget/LinearLayout;
    .end local v5    # "json2":Lorg/json/JSONObject;
    .end local v6    # "lecost":Landroid/widget/TextView;
    .end local v7    # "yecost":Landroid/widget/TextView;
    .end local v8    # "yuecost":Landroid/widget/TextView;
    :catch_0
    move-exception v3

    .line 295
    .local v3, "e":Lorg/json/JSONException;
    invoke-virtual {v3}, Lorg/json/JSONException;->printStackTrace()V

    goto/16 :goto_0

    .line 232
    :sswitch_data_0
    .sparse-switch
        0x0 -> :sswitch_0
        0x1 -> :sswitch_2
        0x2 -> :sswitch_1
        0x4 -> :sswitch_3
        0x22 -> :sswitch_4
    .end sparse-switch
.end method
